package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.VuinfoDao;
import com.dstz.demo.core.manager.VuinfoManager;
import com.dstz.demo.core.model.Vuinfo;
import com.dstz.demo.core.model.Vuinfos;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("VuinfoManager")
public class VuinfoManagerImpl extends BaseManager<String, Vuinfo> implements VuinfoManager {
    @Resource
    VuinfoDao vuinfoDao;
    @Override
    public Integer save(Vuinfo vuinfo) {
        return vuinfoDao.save(vuinfo);
    }

    @Override
    public List<Vuinfos> lists(String userid) {
        return vuinfoDao.lists(userid);
    }

    @Override
    public Integer updates(Vuinfo vuinfo) {
        return vuinfoDao.update(vuinfo);
    }

    @Override
    public Integer deletes(String id) {
        return vuinfoDao.deletes(id);
    }
}
